package com.nhxcz.bigdataweb.controller;

import com.nhxcz.bigdataweb.entity.BaseStationType;
import com.nhxcz.bigdataweb.mapper.ClusterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Date;

@RestController
public class ClusterController {

    @Autowired
    private ClusterMapper clusterMapper; // 没有必要为了分层强行使用ycjjService

    @GetMapping("/BaseStationType")
    public ArrayList<BaseStationType> getBaseStationType() {
        System.out.println(new Date() + "  getBaseStationType");
        return clusterMapper.getAllBaseStationType();
    }
}
